<template>
  <MainLayout
    :role-name="'供应链主管'"
    :system-title="'供应链管理系统'"
    :base-route-path="'/supervisor'"
    :user-name="userInfo.name"
  >
    <template #menu-items>
      <el-menu-item index="/supervisor/home">
        <el-icon style="color: #fff;"><HomeFilled /></el-icon>
        <span style="color: #fff;">首页</span>
      </el-menu-item>
      <el-menu-item index="/supervisor/order">
          <el-icon style="color: #fff;"><Tickets /></el-icon>
          <span style="color: #fff;">供应链订单</span>
        </el-menu-item>
        <el-menu-item index="/supervisor/supplier-quality">
          <el-icon style="color: #fff;"><DataAnalysis /></el-icon>
          <span style="color: #fff;">供应商质量看板</span>
        </el-menu-item>
    </template>
  </MainLayout>
</template>

<script setup lang="ts">
import MainLayout from '@/components/layout/MainLayout.vue'
import {
  HomeFilled,
  Tickets,
  DataAnalysis,
} from '@element-plus/icons-vue'
import { userInfoStore } from '@/stores/userInfo'

// 实例化用户信息store
const userInfo = userInfoStore()
</script>